/**
 * Created by XiaAo on 2017/4/31.
 * function :研究方向路由配置
 * author ：xiaao
 * data : 2017-4-31
 */

var ngModuleAdmin = angular.module("ngModule_Admin", []);

ngModuleAdmin.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise("");

    //图书管理
    $stateProvider
        .state('admin', {
            url: '/admin',
            templateUrl: '../View/ui-view/admin/admin.html',     //侧边栏
            controller: 'adminCtrl'
        })
        .state('admin.newsAdmin', {
            url: '/newsAdmin',
            templateUrl: '../View/ui-view/admin/newsAdmin.html',     //侧边栏
            controller: 'newsAdminCtrl'
        })
        .state('admin.memberAdmin', {
            url: '/memberAdmin',
            templateUrl: '../View/ui-view/admin/memberAdmin.html',     //侧边栏
            controller: 'memberAdminCtrl'
        })
        .state('admin.paperAdmin', {
            url: '/paperAdmin',
            templateUrl: '../View/ui-view/admin/paperAdmin.html',     //侧边栏
            controller: 'paperAdminCtrl'
        })
        .state('admin.patentAdmin', {
            url: '/patentAdmin',
            templateUrl: '../View/ui-view/admin/patentAdmin.html',     //侧边栏
            controller: 'patentAdminCtrl'
        })
        .state('admin.softenedAdmin', {
            url: '/softenedAdmin',
            templateUrl: '../View/ui-view/admin/softenedAdmin.html',     //侧边栏
            controller: 'softenedAdminCtrl'
        })
        .state('admin.rewardAdmin', {
            url: '/rewardAdmin',
            templateUrl: '../View/ui-view/admin/rewardAdmin.html',     //侧边栏
            controller: 'rewardAdminCtrl'
        })

}]);

module.exports = ngModuleAdmin;

